package pl.diagnoser.client.dto;

import java.util.HashSet;
import java.util.Set;
import com.google.gwt.user.client.rpc.IsSerializable;

public class ObjectsDTO implements IsSerializable {

	private Long id;
	private String name;
	private Set<ObjectAttributesDTO> objectAttributes = new HashSet<ObjectAttributesDTO>(0);
	
	public ObjectsDTO() {};
	public ObjectsDTO( String name, Long id ) {
		this.name = name;
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setId( Long id ) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName( String name ) {
		this.name = name;
	}
	
	public Set<ObjectAttributesDTO> getObjectAttributes() {
		return objectAttributes;
	}
	
	public void setObjectAttributes(Set<ObjectAttributesDTO> objectAttributes) {
		this.objectAttributes = objectAttributes;
	}
}
